package it.unical.canonaco.rende.igpe.game.cbv.guilayer.guievents;
import it.unical.canonaco.rende.igpe.game.cbv.logiclayer.engine.component.pawn.Character;

public class CharacterClickEvent implements GraphicEvent {
	
	// which character has been clicked
	private Character clickedChar;
	
	private int index;
	
	// constructor
	public CharacterClickEvent(Character clickedChar) {
		this.clickedChar = clickedChar;
	}

	public CharacterClickEvent(Character clickedChar, int index) {
		this.clickedChar = clickedChar;
		this.setIndex(index);
	}

	public Character getClickedChar() {
		return clickedChar;
	}

	public void setClickedChar(Character clickedChar) {
		this.clickedChar = clickedChar;
	}

	public int getIndex() {
		return index;
	}

	public void setIndex(int index) {
		this.index = index;
	}

}
